package com.music.service.members.mapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.music.service.members.beans.Member;

public class MemberMapper implements RowMapper {

	/* (non-Javadoc)
	 * @see org.springframework.jdbc.core.RowMapper#mapRow(java.sql.ResultSet, int)
	 */
	public Object mapRow(ResultSet pResultSet, int pArg1) throws SQLException {
		Member member = new Member();
		member.setMemberId(pResultSet.getLong("MEMBER_ID"));
		member.setEmail(pResultSet.getString("EMAIL"));
		
		return member;
	}

}
